package com.mimaxueyuan.disruptor.demo07;

import com.lmax.disruptor.EventFactory;

/**
 * In order to allow the Disruptor to preallocate these events for us,
 * we need to an EventFactory that will perform the construction
 *
 * @author: Kevin
 * @官网: 	www.mimaxueyuan.com
 * @Q Q群:	660567408
 * @Email:	mimaxueyuan@163.com
 * [每天进步一点点、人生带来大改变...]
 * [本代码对应视频地址:http://study.163.com/course/introduction/1004573050.htm]
 */
public class LongEventFactory implements EventFactory<LongEvent>{

	@Override
	public LongEvent newInstance() {
		return new LongEvent();
	}

}
